/**
 * SysRole.java
 * SysRole实体映射对象
 * 
 * @author		zhoubing
 * @date   		2018-08-20 12:35:16
 * @revision	v1.0
 */
package com.jftone.bh.app.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import org.jftone.model.Model;
import javax.persistence.GeneratedValue;
import java.util.Date;
import javax.persistence.Id;

@Entity
@Table(name="sys_role")
public class SysRole extends Model {
	@Column(name="parent_code")
	private String parentCode;

	@Column(name="create_time", columnDefinition="datetime")
	private Date createTime;

	@Column(name="role_code")
	private String roleCode;

	@Column(name="role_name")
	private String roleName;

	@Column(name="remark")
	private String remark;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private Integer id;

	@Column(name="role_level")
	private Short roleLevel;

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Short getRoleLevel() {
		return roleLevel;
	}

	public void setRoleLevel(Short roleLevel) {
		this.roleLevel = roleLevel;
	}

}
